{"version":3,"sources":["helper.js"],"names":["BXBlockEditorHelper","prototype","colorHexToRgb","color","shortFormatRegex","replace","m","r","g","b","result","exec","parseInt","appendChildNode","node","anchorNode","before","parentNode","insertBefore","nextSibling","BX","findNextSibling","appendChild","colorRgbToHex","substring","parsedDigits","rgb","rgbString","toString","length","column","param","value","nodeCount","inner","findParent","className","i","childNodes","nodeName","remove","newNode","diffCount","clone","width","setAttribute","valueHex","this","style","tagName","attr","removeAttribute","getAttribute","paddings","addClass","removeClass","hasClass","each","itemList","callback","context","type","isFunction","key","item","eachContext","apply","imageAutoWidth","nearTargetNode","imgList","findChildren","tag","img","_this","setTimeout","offsetWidth","imageTextAlign","nodeOuter","findChild","nodeContList","isFirstImg","nodeImage","nodeText","imageTextPart","nodeInn","defaultValue","fullWidth","nodeImageWidthDict","1/4","1/3","1/2","2/3","imgWidth","imageSrc","groupImageSrc","getImageContentNode","imageContainerHtml","imageTempContainer","create","adjust","html","valueList","split","imageContainer","diffLength","diffLengthAbs","Math","abs","diffDelete","pop","imgNode","push","textContent","trim","innerHTML","htmlEscape","str","String"],"mappings":"AAAA,SAASA,uBAKTA,oBAAoBC,UAAUC,cAAgB,SAASC,GAEtD,IAAIA,EACJ,CACC,OAAOA,EAGR,IAAIC,EAAmB,mCACvBD,EAAQA,EAAME,QAAQD,EAAkB,SAASE,EAAGC,EAAGC,EAAGC,GACzD,OAAOF,EAAIA,EAAIC,EAAIA,EAAIC,EAAIA,IAG5B,IAAIC,EAAS,4CAA4CC,KAAKR,GAC9D,OAAOO,EAAS,OAChBE,SAASF,EAAO,GAAI,IACpB,KACAE,SAASF,EAAO,GAAI,IACpB,KACAE,SAASF,EAAO,GAAI,IACpB,IACG,MAEJV,oBAAoBC,UAAUY,gBAAkB,SAASC,EAAMC,EAAYC,GAE1EA,EAASA,GAAU,KACnB,GAAGA,EACH,CACCD,EAAWE,WAAWC,aAAaJ,EAAMC,OAG1C,CACC,IAAII,EAAcC,GAAGC,gBAAgBN,GACrC,GAA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